home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / compsci / arcsgm.cpt / ARC SGML 1.0 / sgmlc / vm2.r < prev    next >
Encoding:
Text File  |  1991-12-17  |  4.3 KB  |  229 lines

  1. /*
  2.     VM2.r - commando resource file for the SGML Validator VM2.
  3.     
  4.     VM2 [-s] [-c] [-d] [-e] [-f] [-g] [-mpath] [-pn] [-r] entity-id
  5.     
  6.         -s            Show details of SGML parsing (default: error messages only, no details).
  7.         -c            Data or PI chars to print if -S specified: 0 or more (default: 10).
  8.         -d            Report duplicate entity declarations (default: not reported).
  9.         -e            Suppress entity stack trace in error msg (default: entity trace on).
  10.         -f            Files located in current directory only (default: files anywhere on path).
  11.         -g            Suppress GI stack trace in error messages (default: GI trace on).
  12.         -mpath        Pathname of error message file (default: SGML.MSG).
  13.         -pn            n = Number of passes desired: 1 or more (default: 1 pass).
  14.         -r            Give warning for defaulted entity references (default: no warning).
  15.         entity-id    The "entity-id" is a Macintosh file specification that identifies the
  16.                     initial SGML document entity. 
  17.  */
  18.  
  19. #include    "Cmdo.r"
  20.  
  21. resource 'cmdo' (128) {
  22.     {    /* array dialogs: 2 elements */
  23.         /* [1] */
  24.         296,
  25.         "Parse the named SGML entity.",
  26.         {    /* array itemArray: 13 elements */
  27.             /* [1] */
  28.             NotDependent {
  29.  
  30.             },
  31.             Files {
  32.                 InputFile,
  33.                 RequiredFile {
  34.                     {15, 57, 36, 219},
  35.                     "SGML Entity-id",
  36.                     "",
  37.                     "Specify the SGML entity-id of the initia"
  38.                     "l entity to be parsed."
  39.                 },
  40.                 Additional {
  41.                     "",
  42.                     "",
  43.                     "",
  44.                     "",
  45.                     {    /* array TypesArray: 1 elements */
  46.                         /* [1] */
  47.                         text
  48.                     }
  49.                 }
  50.             },
  51.             /* [2] */
  52.             Or {
  53.                 {    /* array OrArray: 1 elements */
  54.                     /* [1] */
  55.                     1
  56.                 }
  57.             },
  58.             Files {
  59.                 InputFile,
  60.                 RequiredFile {
  61.                     {15, 261, 36, 423},
  62.                     "Error Messages",
  63.                     "-m",
  64.                     "Name of Error Message File (default: SGM"
  65.                     "L.MSG)."
  66.                 },
  67.                 Additional {
  68.                     "",
  69.                     "",
  70.                     "",
  71.                     "",
  72.                     {    /* array TypesArray: 1 elements */
  73.                         /* [1] */
  74.                         text
  75.                     }
  76.                 }
  77.             },
  78.             /* [3] */
  79.             Or {
  80.                 {    /* array OrArray: 1 elements */
  81.                     /* [1] */
  82.                     1
  83.                 }
  84.             },
  85.             NestedDialog {
  86.                 2,
  87.                 {43, 167, 64, 308},
  88.                 "I/O Redirection...",
  89.                 "Click this button to open a dialog with "
  90.                 "redirection controls.  You must specify "
  91.                 "at least  \"SGML Entity-id\" to enable thi"
  92.                 "s button."
  93.             },
  94.             /* [4] */
  95.             Or {
  96.                 {    /* array OrArray: 1 elements */
  97.                     /* [1] */
  98.                     -12
  99.                 }
  100.             },
  101.             CheckOption {
  102.                 NotSet,
  103.                 {78, 14, 95, 184},
  104.                 "Show parsing details.",
  105.                 "-s",
  106.                 "Show details of SGML parsing (default: e"
  107.                 "rror messages only)."
  108.             },
  109.             /* [5] */
  110.             NotDependent {
  111.  
  112.             },
  113.             CheckOption {
  114.                 NotSet,
  115.                 {93, 14, 108, 282},
  116.                 "Report duplicate entity declarations.",
  117.                 "-d",
  118.                 "Report duplicate entity declarations (de"
  119.                 "fault: not reported)."
  120.             },
  121.             /* [6] */
  122.             NotDependent {
  123.  
  124.             },
  125.             CheckOption {
  126.                 NotSet,
  127.                 {108, 14, 123, 231},
  128.                 "Suppress entity stack trace.",
  129.                 "-e",
  130.                 "Suppress entity stack trace in error mes"
  131.                 "sage (default: entity trace on)."
  132.             },
  133.             /* [7] */
  134.             NotDependent {
  135.  
  136.             },
  137.             CheckOption {
  138.                 NotSet,
  139.                 {123, 14, 140, 305},
  140.                 "Suppress Generic Identifier stack trace.",
  141.                 "-g",
  142.                 "Suppress Generic Identifier stack trace "
  143.                 "in error messages (default: Generic Iden"
  144.                 "tifier trace on)."
  145.             },
  146.             /* [8] */
  147.             NotDependent {
  148.  
  149.             },
  150.             CheckOption {
  151.                 NotSet,
  152.                 {138, 14, 153, 283},
  153.                 "Warn of defaulted entity references.",
  154.                 "-r",
  155.                 "Give warning for defaulted entity refere"
  156.                 "nces (default: no warning)."
  157.             },
  158.             /* [9] */
  159.             NotDependent {
  160.  
  161.             },
  162.             RegularEntry {
  163.                 "Characters",
  164.                 {81, 319, 97, 407},
  165.                 {80, 425, 96, 460},
  166.                 "10",
  167.                 ignoreCase,
  168.                 "-c",
  169.                 "Data or PI characters to print if detail"
  170.                 "ed parse is specified."
  171.             },
  172.             /* [10] */
  173.             NotDependent {
  174.  
  175.             },
  176.             RegularEntry {
  177.                 "Passes",
  178.                 {111, 349, 127, 409},
  179.                 {109, 426, 125, 461},
  180.                 "1",
  181.                 ignoreCase,
  182.                 "-p",
  183.                 "Number of passes desired: 1 or more (def"
  184.                 "ault: 1)."
  185.             },
  186.             /* [12] */
  187.             NotDependent {
  188.  
  189.             },
  190.             TextBox {
  191.                 black,
  192.                 {71, 10, 186, 470},
  193.                 "Options"
  194.             },
  195.             /* [13] */
  196.             Or {
  197.                 {    /* array OrArray: 1 elements */
  198.                     /* [1] */
  199.                     1
  200.                 }
  201.             },
  202.             DoItButton {
  203.  
  204.             }
  205.         },
  206.         /* [2] */
  207.         192,
  208.         "I/O redirection.",
  209.         {    /* array itemArray: 2 elements */
  210.             /* [1] */
  211.             NotDependent {
  212.  
  213.             },
  214.             Redirection {
  215.                 StandardOutput,
  216.                 {26, 183}
  217.             },
  218.             /* [2] */
  219.             NotDependent {
  220.  
  221.             },
  222.             Redirection {
  223.                 DiagnosticOutput,
  224.                 {26, 338}
  225.             }
  226.         }
  227.     }
  228. };
  229.